﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

using HHo_Negocio;
using HHo_Model;
using System.Text;
using System.IO;

public partial class Reportes_wfRepTrab : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            GestorTblParametros oGesPar = new GestorTblParametros();
             ddlArea.DataSource = oGesPar.ListaParametroPorGrupo(6);
            ddlArea.DataTextField = "ParametroValor";
            ddlArea.DataValueField = "ParametroID";
            ddlArea.DataBind();
        }

    }

    protected void imgBuscar_Click(object sender, ImageClickEventArgs e)
    {
        string uri_reportserver;
        uri_reportserver = ConfigurationManager.AppSettings["URLReportServer"].ToString();
        lblFrame.Text = "<iFrame width=\"1000px\" height=\"700px\" src=\"" + uri_reportserver + "?/HHo_ReportService/rsRptInfDiarioV2" + "&rs:Command=Render&FECINF=" + txtFecInf.Text + "&AREAID=" + ddlArea.SelectedValue + "&rc:Parameters=False&rc:ToolBar=True\"  />";
    }
}
